package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ExWarehouseMapper;
import com.ruoyi.system.domain.ExWarehouse;
import com.ruoyi.system.service.IExWarehouseService;

/**
 * 出库管理Service业务层处理
 * 
 * @author haoxx
 * @date 2022-04-22
 */
@Service
public class ExWarehouseServiceImpl implements IExWarehouseService 
{
    @Autowired
    private ExWarehouseMapper exWarehouseMapper;

    /**
     * 查询出库管理
     * 
     * @param id 出库管理主键
     * @return 出库管理
     */
    @Override
    public ExWarehouse selectExWarehouseById(Long id)
    {
        return exWarehouseMapper.selectExWarehouseById(id);
    }

    /**
     * 查询出库管理列表
     * 
     * @param exWarehouse 出库管理
     * @return 出库管理
     */
    @Override
    public List<ExWarehouse> selectExWarehouseList(ExWarehouse exWarehouse)
    {
        return exWarehouseMapper.selectExWarehouseList(exWarehouse);
    }

    /**
     * 新增出库管理
     * 
     * @param exWarehouse 出库管理
     * @return 结果
     */
    @Override
    public int insertExWarehouse(ExWarehouse exWarehouse)
    {
        return exWarehouseMapper.insertExWarehouse(exWarehouse);
    }

    /**
     * 修改出库管理
     * 
     * @param exWarehouse 出库管理
     * @return 结果
     */
    @Override
    public int updateExWarehouse(ExWarehouse exWarehouse)
    {
        return exWarehouseMapper.updateExWarehouse(exWarehouse);
    }

    /**
     * 批量删除出库管理
     * 
     * @param ids 需要删除的出库管理主键
     * @return 结果
     */
    @Override
    public int deleteExWarehouseByIds(Long[] ids)
    {
        return exWarehouseMapper.deleteExWarehouseByIds(ids);
    }

    /**
     * 删除出库管理信息
     * 
     * @param id 出库管理主键
     * @return 结果
     */
    @Override
    public int deleteExWarehouseById(Long id)
    {
        return exWarehouseMapper.deleteExWarehouseById(id);
    }
}
